<template>
    <div class="app">
<!-- 这里是收藏页面 -->
        <div v-for="item in luitem" class="goods">
            <el-card class="box-card">
                <div slot="header" class="clearfix">
                    <img :src="item.productImageditys" alt="">
                </div>
                <div class="text item">
                    <div>
                        {{ item.productTitleditys }}
                    </div>
                    <div>
                        {{ item.collectionTimeLists }}
                    </div>
                </div>

            </el-card>


        </div>
    </div>
</template>
<script>
import axios from 'axios';
export default {

    name: 'app',
    data() {
        return {
            luitem: [],

        }
    },
    created() {
        this.lu();
    },
    methods: {
        lu() {
            axios
                .get("api/UserCenter/SearchMyFavorites?id=26&page=1")
                .then(res => {
                    this.luitem = res.data
                    console.log(res);
                })

        },

    }

}
</script>
<style>
.goods {
    float: left;

    height: 500px;

}


.clearfix img {
    width: 150px;
    height: 150px;

}

.box-card {
    margin: 20px;
    margin-top: 60px;
}


</style>